﻿using System;
using System.Collections.Generic;
using System.Text;

namespace T.FAS.Runtime.Action.Dao
{
    public class DaoFactory
    { 
        public static DaoType DaoType { get; set; }

        public static IDaoFactory<T> GetDaoFactory<T>()
        {
            if (DaoType == DaoType.ELB)
                return new ELBDaoFactory<T>();
            else
                return new MyBatisDaoFactory<T>();
        }
    }
}
